<!DOCTYPE html>
<html>
    <head>
        <title>图标管理-列表</title>
 		<#include "fsoft-common.ftl" />
    </head>
    <body>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space5">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <form class="layui-form" action="" id="searchForm" lay-filter="searchForm" autocomplete="off">
                                <div class="layui-inline layui-show-xs-block">
                                    <input type="text" class="layui-input" name="code" placeholder="编号模糊搜索" autocomplete="off">
                                </div>
                                <div class="layui-inline layui-show-xs-block">
                                    <input type="text" class="layui-input" name="name" placeholder="名称模糊搜索" autocomplete="off">
                                </div>
                                <div class="layui-inline layui-show-xs-block">
                                    <input type="text" class="layui-input" name="className" placeholder="图标样式模糊搜索" autocomplete="off">
                                </div>
                                <div class="layui-inline layui-show-xs-block">
                                    <button class="layui-btn layui-btn-normal" lay-submit lay-filter="sreach">
                                    	<i class="layui-icon layui-icon-search"></i>搜索
                                    </button>
                                </div>
                            </form>
                        </div>
                        <div class="layui-card-body">
                            <table id="iconTableBody" class="layui-table" lay-filter="iconTableBody"></table>
                        </div>
                    </div>
                </div>
            </div>
        </div> 
    </body>
    <#include "fsoft-common-foot.ftl" />
	<script type="text/javascript" src="${request.contextPath}/static/fsoft-web/icon/sysicons-list.js?v=202002"></script>
    <#-- 这里的 checked 的状态 -->
	<script type="text/html" id="switchStatus">
	  	<input type="checkbox" name="status" value="{{d.id}}" lay-skin="switch" lay-text="正常|禁用" lay-filter="status" {{ d.status == 1 ? 'checked' : '' }} disable >
	</script>
	<script type="text/html" id="batchBtnToolBar">
        <div class="layui-btn-container">
            <@perms value="sys:icon:add">
                <button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="add">
                    <i class="fa fa-plus" aria-hidden="true"></i> 新增
                </button>
            </@perms>
            <@perms value="sys:icon:remove">
                <button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="removeBatch">
                    <i class="fa fa-trash" aria-hidden="true"></i>删除
                </button>
            </@perms>
        </div>
    </script>
    <#-- 每一行最后一列的“操作” -->
	<script type="text/html" id="iconTableBar">
		<@perms value="sys:icon:edit">
		  	<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit">
		  		<i class="fa fa-edit" aria-hidden="true" ></i>  编辑
	  		</a>
		</@perms>
		<@perms value="sys:icon:remove">
		  	<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">
		  		<i class="fa fa-trash" aria-hidden="true" ></i> 删除
	  		</a>
		</@perms>
	</script>
</html>